package xyz.ljcc.ccmt.service.api.admin;

import java.util.List;

import xyz.ljcc.ccmt.model.base.Operation;


public interface OperationService {
	
	/**
	 * 根据loginName获取对应的菜单权限信息
	 * @param loginName
	 * @return
	 */
	List<Operation> loadOperationsByLoginName(String loginName);
	
	List<Operation> loadOperationsByParentId(Integer parentOperationId);
	
	List<Operation> loadParentOperations();
	
	Operation getOperationById(Integer operationId);
	
	Operation addOperation(Operation operation);
	
	Operation editOperation(Operation operation);
	
	void delOperation(Integer operationId);
	
	void activeOperation(Integer operationId,Integer active);
	
	List<Operation> loadOperations();
	
}
